<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */

$db['apply_refund']=array (
  'columns' =>
  array (
    'order_id' =>
    array (
      'type' => 'table:orders@b2c',
      'required' => true,
      'pkey' => true,
      'label' => app::get('aftersales')->_('订单号'),
      'comment' => app::get('aftersales')->_('订单号'),
    ),
    'member_id' =>
    array (
      'type' => 'table:members@pam',
      'required' => true,
      'editable' => false,
      'in_list' => true,
      'default_in_list' => true,
      'order' => '4',
      'label' => app::get('aftersales')->_('申请人'),
      'comment' => app::get('aftersales')->_('申请人'),
    ),
    'apply_id' =>
    array (
      'type' => 'bigint(20)',
      'required' => true,
      'pkey' => true,
      'label' => app::get('aftersales')->_('申请退款记录流水号'),
      'comment' => app::get('aftersales')->_('申请退款记录流水号'),
    ),
    'status' =>
    array (
      'type' =>
      array(
        '1' => app::get('aftersales')->_('审核中'),
        '2' => app::get('aftersales')->_('完成'),
        '3' => app::get('aftersales')->_('拒绝'),
      ),
      'default' => '1',
      'required' => true,
      'label' => app::get('aftersales')->_('申请退款状态'),
      'comment' => app::get('aftersales')->_('申请退款状态'),
    ),
    'apply_money' =>
    array (
      'type' => 'money',
      'default' => '0',
      'required' => true,
      'comment' =>app::get('aftersales')->_('退款金额'),
    ),
    'content' =>
    array(
        'type' => 'longtext',
        'label' => app::get('aftersales')->_('退款理由'),
        'comment' => app::get('aftersales')->_('退款理由'),

    ),
    'admin_content' =>
    array(
        'type' => 'longtext',
        'label' => app::get('aftersales')->_('管理员备注'),
        'comment' => app::get('aftersales')->_('管理员备注'),
    ),
    'add_time' =>
    array(
        'type' => 'time',
        'width' => 110,
        'editable' => false,
        'in_list' => true,
        'default_in_list' => true,
        'order' => '7',
        'label' => app::get('aftersales')->_('创建时间'),
        'comment' => app::get('aftersales')->_('创建时间'),
    ),
    'last_modify' => array(
      'type' => 'last_modify',
      'label' => app::get('b2c')->_('更新时间'),
      'comment' => app::get('b2c')->_('更新时间'),
    ),
  ),
  'engine' => 'innodb',
  'version' => '$Rev: 40912 $',
  'comment' => app::get('aftersales')->_('客户退款申请表'),
);
